<!--{eval $_TPL['titles'] = array('新闻爆料');}-->
<!--{template header}-->
<script type="text/javascript">
	function checkselect(obj) {
		 var subject = $('catid');
	    if (subject) {
	    	if(subject.value=='a') {
	    		alert("不能选择顶级目录！");
	            return false;
	        }
	    } 
		return true;
	}
</script>
<h2 class="title"><img src="image/app/news.gif" />新闻爆料</h2>
<div class="tabs_header">
 
	<ul class="tabs">
		<li$actives[all]><a href="news.php?do=news&view=all"><span>所有爆料</span></a></li>
		<li$actives[find]><a href="news.php?do=news&view=find"><span>搜一搜</span></a></li>
		<li$actives[me]><a href="news.php?do=news&view=me"><span>我的爆料</span></a></li>
		<li$actives[friend]><a href="news.php?do=news&view=friend"><span>好友的爆料</span></a></li>
		<li class="null"><a href="news.php?ac=new" class="t_button">我要爆料</a></li>
	</ul>
</div>
<!--{if $showfind}-->
<div class="h_status">	
	<form method="get" action="news.php?view=find">
关键字
<input type="text" name="keyword" value="$keyword" size="10" class="t_input" />
&nbsp;&nbsp;<select name="catid" id="classid" onchange="checkselect();" >
							<option value="0">选择分类</option>
								<!--{loop $newslist $value}-->
									<option value="a" >---$value[catname]---</option>
										<!--{loop $newslist_cat $value_cat}-->
											<!--{if $value_cat[parentid]==$value[catid]}-->
												<!--{if $value_cat[catid]==$catid}-->
													<option value="$value_cat[catid]" selected>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value_cat[catname]</option>
												<!--{else}-->	
													<option value="$value_cat[catid]" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value_cat[catname]</option>
												<!--{/if}-->	
											<!--{/if}-->
										<!--{/loop}-->
							<!--{/loop}-->
					</select>
					 <script type="text/javascript" src="news/js/script_city.js"></script>
                <SCRIPT LANGUAGE="JavaScript">
                    var $ = function(ID){ return document.getElementById(ID); };
                    window.onload = function() { 
                        attachSelect(0, [$("province"), $("city"), $("subcity")], aMatrix,["$province","$city","$subcity",]); 
	                };
                </SCRIPT>
                <select id="province" name="province" >省份</select>
                <select id="city" name="city">市</select>
                <select id="subcity" name="subcity">区县</select>			
&nbsp;&nbsp;
<select name="searchtype">
	<option value="0"<!--{if $searchtype=='0'}-->selected<!--{/if}-->>标题搜索</option>
	<option value="1" <!--{if $searchtype=='1'}-->selected<!--{/if}-->>全文搜索</option>
</select>
<input type="hidden" name="view" value="find" />
<input type="hidden" name="searchmode" value="1" />
&nbsp;&nbsp;<input type="submit" name="searchsubmit" value="搜索" class="submit" />
</form>
</div>
<!--{/if}-->
<div id="content" style="width:640px;">
	<div class="entry_list">
	<!--{if $list}-->
	<div class="entry_list">
		<ul>
			<!--{loop $list $value}-->
			<li>
			     <div class="avatardiv">
			     	<div class="avatar48"><a href="space.php?uid=$value[uid]"><!--{avatar($value[uid],small)}--></a></div>
				</div>
			     <div class="title">
					<h4><a href="news.php?ac=view&newsid=$value[newsid]">$value[subject]</a></h4>
					<br />
					<div class="gray">
					<a href="space.php?uid=$value[uid]">{$value[username]}</a> <span class="time">发表时间：<!--{date('Y-m-d H:i',$value[starttime],1)}-->&nbsp;&nbsp;&nbsp;&nbsp;有效期：<!--{date('Y-m-d',$value[endtime])}--></span> <!--{if $value[up]}--><font color="red">置顶 </font><!--{/if}-->
						<!--{if $value[province] or $value[city]}-->
							&nbsp;&nbsp;所属地区：$value[province] &nbsp;$value[city]  
						<!--{/if}-->
						</div>
				</div>
				<div class="detail image_right l_text s_clear" id="blog_article_$value[newsid]">
						<!--{if $value[pic]}--><p class="image"><a href="news.php?ac=view&newsid=$value[newsid]"><img src="$value[pic]" alt="$value[subject]" /></a></p><!--{/if}-->
						$value[detail] 
				</div>
				<div class="gray">
						 分类: <a href="news.php?do=news&view=find&catid=$value[catid]">{$value[catname]}</a><span class="pipe"> | </span>  发布者IP:$value[ip] 
						 <!--{if $value[uid]==$uid || $isadmin}-->
						 | <a href="news.php?ac=new&newsid=$value[newsid]">编辑</a>
						 | <a href="news.php?ac=new&op=delete&newsid=$value[newsid]">删除</a>
						 <!--{/if}-->
				</div>
			</li>
			<!--{/loop}-->
		</ul>
	</div>
	
		<!--{else}-->
		
			没有搜索到相关新闻爆料。
			<!--{if $space[self]}-->您可以<a href="news.php?ac=new">发表爆料</a>。<!--{/if}-->
		
		<!--{/if}-->
		
	</div>
	<div class="page">$multi[html]</div>
</div> 



<div id="sidebar" style="width:150px;">

		<h2 class="title">爆料分类</h2>
			<ul class="line_list">
				<li><a href="news.php?uid=$space[uid]&do=news&view=all">全部分类</a></li>
				<!--{loop $newslist $value}-->
				<li>
					<a href="news.php?uid=$space[uid]&do=news&view=find&catid=$value[catid]">$value[catname]</a>
				</li>
				<!--{loop $newslist_cat $value_cat}-->
					<!--{if $value_cat[parentid]==$value[catid]}-->
						<li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<a href="news.php?uid=$space[uid]&do=news&view=find&catid=$value_cat[catid]">$value_cat[catname]</a>
						</li>
					<!--{/if}-->
				<!--{/loop}-->
			<!--{/loop}-->
			</ul>
</div>
<!--{template footer}-->
 
 